FROM openjdk:17-jdk-alpine

MAINTAINER dev-zhang

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /work

WORKDIR /work

EXPOSE 8080
ADD ./target/basic-auth-1.0.jar ./

CMD java -Djava.security.egd=file:/dev/./urandom -jar basic-auth-1.0.jar